<?php

/**
 * 房型图集表模型
 */
class InnRoomImagesModel extends AutoMapModel {

    protected $tableName = 'pic';
    protected $patchValidate = true;
    
    public $_map = array(
        'id'             => 'pic0', //图片ID
        'name'           => 'pic1', //图片名称
        'roomId'         => 'pic2', //所属房型ID
        'menuId'         => 'pic3', //分类标志616
        'path'           => 'pic4', //图片路径
        'display_order'  => 'pic6', //排序
    );
    
    protected $_auto = array(
        array('menuId','616',Model::MODEL_INSERT,'string'),
    );
}

?>